//SPDX-FileCopyrightText: Copyright 2022-2024 深圳市同心圆网络有限公司
//SPDX-License-Identifier: GPL-3.0-only

use crate::client_cfg_api_plugin::{
    VendorAbility, VendorAccount, VendorConfig, VendorDataView, VendorLayout, VendorOrg,
    VendorProject, VendorWorkBench,
};

pub fn get_vendor_config() -> VendorConfig {
    return VendorConfig {
        vendor_name: "深圳市同心圆网络有限公司".into(),
        default_server_name: "官方".into(),
        default_server_addr: "serv.linksaas.pro:5000".into(),
        global_server_addr: "serv.linksaas.pro:5000".into(),

        ability: VendorAbility {
            enable_dataview: true,
            enable_project: true,
            enable_org: true,
            enable_pubres: true,
        },
        account: VendorAccount {
            inner_account: true,
            external_account: true,
            external_atomgit: true,
            external_gitcode: true,
            external_gitee: true,
        },
        work_bench: VendorWorkBench {
            enable_minapp: true,
            enable_user_memo: true,
            enable_server_list: true,
            enable_user_resume: true,
            enable_user_todo: true,
        },
        dataview: VendorDataView {
            enable_atomgit: true,
            enable_gitcode: true,
            enable_gitee: true,
            enable_gitlab: true,
            enable_tencloud: true,
            enable_alicloud: true,
            enable_hwcloud: true,
        },
        project: VendorProject {
            show_requirement_list_entry: true,
            show_task_list_entry: true,
            show_bug_list_entry: true,
            show_testcase_list_entry: true,
            enable_share: true,
        },
        org: VendorOrg {
            enable_forum: true,
        },
        layout: VendorLayout {
            app_name: "OpenLinkSaas".into(),
            hide_sys_bar: true,
            show_feedback_modal: true,
            feedback_url: "https://atomgit.com/openlinksaas-org/desktop/issues".into(),
            show_server_switch: true,
            show_quick_access: true,
            show_admin_in_quick_access: true,
            show_local_api_in_quick_access: true,
            enable_normal_layout: true,
            show_layout_switch: true,
            enable_server_menu: true,
            menu_list: vec![],
            welcome_page_url: "".into(),
            show_manual_and_version: true,
            vendor_logo_url: "".into(),
            vendor_logo_height: 80,
            vendor_link_url: "".into(),
            vendor_intro: r#""#.into(),
        },
    };
}
